import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:styled_widget/styled_widget.dart';

import '../controller/drawing_board_controller.dart';

class DbTestWidget extends StatelessWidget {
  const DbTestWidget({super.key});

  @override
  Widget build(BuildContext context) {
    final dbc = Get.find<DrawingBoardController>();

    return Row(
      children: [
        Icon(Icons.data_array, color: Colors.black87, size: 30.r).gestures(
            onTap: () {
          dbc.dbTest(Icons.data_array);
        }),
        Icon(Icons.image, color: Colors.black87, size: 30.r).gestures(
            onTap: () {
          dbc.dbTest(Icons.image);
        }),
        Icon(Icons.add, color: Colors.black87, size: 30.r).gestures(onTap: () {
          dbc.dbTest(Icons.add);
        }),
        Icon(Icons.data_exploration, color: Colors.black87, size: 30.r).gestures(onTap: () {
          dbc.dbTest(Icons.data_exploration);
        }),
        Icon(Icons.query_stats, color: Colors.black87, size: 30.r).gestures(onTap: () {
          dbc.dbTest(Icons.query_stats);
        }),
      ],
    );
  }
}
